<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + request.getContextPath() + "/";
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<base href="<%=basePath%>">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<title>修改文件</title>
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/upload-file.css">
</head>
<body>

	<div class="container">


		<form action="SaveFile" method="post">


			<ul class="ul-1">

				<li class="li-1">

					<p class="big-title">修改文件</p> <input type="hidden" name="id"
					value="${file.id}">
				</li>





				<li class="li-1"><span class="title">文件名：</span> <input
					readonly="readonly" class="input-1" type="text" name="file"
					value="${file.name}"> <span class="errMsg"></span></li>


				<li class="li-1"><span class="title">文件类型：</span> <input
					readonly="readonly" class="input-1" type="text" name="fileName"
					value='${file.type==1?"其他":""||file.type==2?"图片":""||file.type==3?"文档":""||file.type==4?"视频":""||file.type==5?"音乐":""}'>
					<span class="errMsg"></span></li>

				<li class="li-1">
					<!-- 版本 --> <span class="title">版本：</span> <input class="input-1"
					value="${file.version}" name="version" type="text"> <span
					class="errMsg"></span>

				</li>


				<li class="li-1"><span class="title">审核：</span> <input
					class="input-1" readonly="readonly"
					value='${file.audit==0?"待审核":""||file.audit==1?"通过":""||file.audit==2?"未通过":""}'
					name="audit" type="text"> <span class="errMsg"></span></li>


				<li class="li-1">
					<!-- 密级 --> <span class="title">密级：</span> <select class="select-1"
					name="thick">
						<option ${file.thick==1?"selected=\"selected\"":""} value="1">个人
							- 仅自己可见，无需管理员审核</option>
						<option ${file.thick==2?"selected=\"selected\"":""} value="2">部门
							- 仅所在部门人员可见，需要管理员审核</option>
						<option ${file.thick==3?"selected=\"selected\"":""} value="3">企业
							- 所在企业任何人员可见，需要管理员审核</option>
						<option
							${file.thick==4?"selected=\"selected\"":""||type==1?"disabled=\"disabled\"":""}
							value="4">公告 - 所有人员可见（包括未登录）只能由管理员发布</option>
				</select> <span class="errMsg">${thickErr}</span>

				</li>


				<li class="li-1"><span class="title">上传时间：</span> <input
					class="input-1" readonly="readonly"
					value='<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss"
										value="${file.publishDate}" type="both" />'
					name="audit" type="text"> <span class="errMsg"></span></li>



				<li class="li-1"><span class="title">上次修改：</span> <input
					class="input-1" readonly="readonly"
					value='<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss"
										value="${file.updateDate}" type="both" />'
					name="audit" type="text"> <span class="errMsg"></span></li>



				<li class="li-2">
					<!-- 摘要 --> <span class="title">描述：</span> <textarea
						name="description" class="textarea-1">${file.description}</textarea>
				</li>



				<li class="li-1"><input class="reset" type="reset" value="重置">
					<input class="submit" type="submit" value="提交"></li>


			</ul>








		</form>


	</div>

</body>
</html>